fix [[: not found error