rake assets and modify some loading bugs