Fixed crash problem if no current layer in save file