Fixed crash in bridge