Fixed broken .before method