Fixed bug with viewport blocking