fix #394 transition gaps