fixing issue for auto layout