Fixes for rails sprockets