Fixed crash when before was implemented