Prevent crash when using start/end positions