Fix for save context.

Don't return if you come from buffer(not file)