fix bug in / detection