fixing bugs in start at/end at params