Fixed crash due to removeOnGlobalLayoutListener