Error in main layout fix