Fixed kernel stalling problem when custom precision is not multiple of 16 bits