fix bug in space