fixed loading layout from file