create_session fix