Fixed the spillage that occured in tablet mode