Fixed allocated pages not being marked as used