Fixed all locks, Integers were not being allocated