Fix bound error