Extension of the residence permit in case of temporary stay