Fixed small bug that caused specs to fail sometimes